Imports SD.LLBLGen.Pro.ORMSupportClasses

Namespace Aricie.DNN.Services.Url.FriendlyUrl.Data
    Public Structure DbOperations


        Public Sub New(ByVal uow As UnitOfWork2)
            Me.NbInserts = uow.GetEntityElementsToInsert.Count
            Me.NbUpdates = uow.GetEntityElementsToUpdate.Count
            Me.NbDeletes = uow.GetEntityElementsToDelete.Count
        End Sub

        Public Sub New(ByVal nbInserts As Integer, ByVal nbUpdates As Integer, ByVal nbDeletes As Integer, ByVal nbOps As Integer)
            Me.NbInserts = nbInserts
            Me.NbUpdates = nbUpdates
            Me.NbDeletes = nbDeletes
            Me.NbDbOps = nbOps

        End Sub

        Public NbInserts As Integer
        Public NbUpdates As Integer
        Public NbDeletes As Integer
        Public NbDbOps As Integer

        Public Shared NoOperation As New DbOperations(0, 0, 0, 0)

    End Structure
End NameSpace